package leetcode.math;

import leetcode.math.common.MathUtils;

class Solution342 {
    /**
     * n == 4^x
     * n 和 x 都是整数
     *
     * @param n
     * @return
     */
    public boolean isPowerOfFour(int n) {
        return MathUtils.isPowerOfFour(n);

    }
}

public class leetcode342 {
    public static void main(String[] args) {
        Solution342 solution342 = new Solution342();
        System.out.println(solution342.isPowerOfFour(16));
        System.out.println(solution342.isPowerOfFour(5));
        System.out.println(solution342.isPowerOfFour(1));
    }
}
